﻿using System;
using System.Data;
using PPI.Data;


namespace PPI.ServiceLogic
{
    public class LUser
    {

        public static DataSet GetAll(string connectionKey)
        {
            return DUser.GetAll(connectionKey);
        }

        public static Int32 Save(Int32 userId,string username, string password, bool isAdministrator, string connectionKey)
        {
            if(userId != Int32.MinValue)
                DUser.Update(userId,username,password,isAdministrator,connectionKey);
            return userId;
        }
    }
}
